|
|
- Robocode -- Advanced Concepts
- "Anti-gravity" movement
- Anti-gravity movement is an algorithm to avoid pattern recognition
- Instead of moving according to a pattern, you create gravity points with force values
- Each point has a "force value" determining if it attracts or repells you from that point
- When you add up the values and the directions they're at from you, you move in that directon
- As distance becomes greater or lesser, and as gravity points move, forces will increase and decrease, meaning it won't get stuck in one place
|
|